const api = 'https://api.isharefor.com/';
module.exports = {
  //管理员
  ADMIN: {
    LOGINOUT: api + 'admin/user/logout',    // 登出接口
    LOGIN: api + 'admin/user/login',      //登录接口
    UPDUSERPWD: api + 'admin/user/updUserPWD', //重置密码接口
  },
  LIST: {
    // 用户
    FINDUSERBYPAGE: api + 'admin/appUser/findAppUserByPage',  // 分页获取用户列表
    FINDUSERDETAIL: api + 'admin/appUser/findAppUserDetail',
    EXPORTUSER:api+'admin/appUser/exportAppUser',
    //单词列表
    WORDLIST: api + 'admin/word/findEngWordByPage',
    SAVEWORD: api + 'admin/word/saveEngWord',
    WORDDETAIL: api + 'admin/word/findEngWordDetail',
    EXPORTWORD1:api+'admin/word/exportEngWord',
    //单词题库
    QUESTIONLIST: api + 'admin/question/findEngWordQuestionByPage',
    EXPORTWORD:api+'admin/word/importEngWord',
    //试卷列表
    PAPERLIST: api + 'admin/papers/findEngPapersByPage',
    PAPERITEMS: api + 'admin/papers/findPapersItem',
    SAVEPAPER: api + 'admin/papers/saveEngPapers',
    SAVEPAPERITEMS: api + 'admin/papers/saveEngPapersItem',
    UPDATE: api + 'admin/papers/updatePapersStatus',
    PAPERITEMSDETAIL:api+'admin/papers/findEngPapersItemDetail',
    DELETEPAPERITEMS:api+'admin/papers/deleteEngPapersItem',
    EXPORTPAPERS:api+'admin/papers/exportUserTestPapersItem',
    EXPORTQUESTION:api+'admin/question/exportEngWordQuestion',
    SELFTESTLIST:api+'admin/papers/findUserSelfTestPapersByPage',
    IMPORTPAPAER:api+'admin/papers/importEngPapersAndItem',
    DATILIST:api+'admin/papers/findUserTestPapersItemByPage',
    //问卷管理
    SURVERYEDIT: api + 'admin/survey/saveEngSurveyItem',
    SURVERYLIST: api + 'admin/survey/findSurveyItem',
    //后台词汇纠正
    CORRECTLIST: api + 'admin/wordCorrect/findWordCorrectByPage',
    CORRECTDETAIL: api + 'admin/wordCorrect/findWordCorrectDetail',
    FINDSYSVAR:api+'admin/sysVar/findSysVar',
    SAVESYSVAR:api+'admin/sysVar/setSysVar',
    //问卷
    SUEVERYSELECT:api+'admin/survey/findUserSurveySelect',
    FINDSURVERYITEM:api+'admin/survey/findSurveyItem',
    SAVESURVERY:api+'admin/survey/saveEngSurveyItem'
  },
  SYSTEM: {
    ADMINUPLOADFILE: api + 'base/sys/admin/getOSSUploadUrl',  // 获取阿里云上传链接    
    UPLOADFILEBYCOS: api + 'base/sys/admin/getOSSUploadUrl',     // 获取腾讯云上传链接    
    //字典
    LOADLIST: api + 'base/sys/app/loadDictionary',
    // 角色管理
    FINDAPPROLEBYPAGE: api + 'admin/role/findAppRoleByPage',   // 分页获取角色列表
    GETALLAPPPERMISSION: api + 'admin/role/getAllAppPermission',  // 获取所有权限列表
    GETROLEINFOBYID: api + 'admin/role/getRoleInfoByRoleId',   // 获取角色详情
    DELETEROLEBYID: api + 'admin/role/deleteRoleByRoleId',   // 删除角色记录
    SAVEAPPROLE: api + 'admin/role/saveAppRole',   // 保存角色
    // 管理员
    FINDUSERPERMISSIONS: api + 'admin/user/findUserPermissions',     // 获取用户拥有的左侧菜单权限
    FINDADMINUSERBYPAGE: api + 'admin/user/findAdminUserByPage',   //  分页获取用户列表
    FINDADMINUSERDETAILBYUSERID: api + 'admin/user/findAdminUserDetailByUserId',   // 用户详情
    SAVEADMINUSER: api + 'admin/user/saveAdminUser',    // 保存用户
    DELETEADMINUSERBYID: api + 'admin/user/deleteAdminUserByUserId',     // 删除

  },

}
